export enum PartStatus {
  None = 'None',
  Warning = 'Warning',
  RequireMaintenance = 'RequireMaintenance'
}

export class Part {
  id: string
  projectId: string
  partName: string
  deviceId: string
  warningTaskName: string
  currentValueTaskName: string
  stopValueTaskName: string
  warningValueTaskName: string
  partStatus: PartStatus
  creatorId: string
  creationTime: string
  lastModifierId: string
  lastModificationTime: string

  constructor() {
    this.id = ''
    this.projectId = ''
    this.partName = ''
    this.deviceId = ''
    this.warningTaskName = ''
    this.currentValueTaskName = ''
    this.stopValueTaskName = ''
    this.warningValueTaskName = ''
    this.partStatus = PartStatus.None
    this.creatorId = ''
    this.creationTime = ''
    this.lastModifierId = ''
    this.lastModificationTime = ''
  }
}
